package com.cskaoyan.config4;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 专门用来管理配置文件中的值的对象（组件）
 * @author stone
 * @date 2022/08/11 11:11
 */
@Data
@ConfigurationProperties(prefix = "cskaoyan.datasource4")
@Component
public class DatasourceProperties {
    String driverClassName;
    String url;
    String username;
    String password;
}
